import re


def get_vue_list(result):
    js_list = []
    for entry in result['log']['entries']:
        _url = entry['request']['url']
        print(_url)
        # 根据URL找到js接口
        if (".js" in _url and '/views/' in _url):
            js_list.append(_url)
    vue_list=[]
    for i in js_list:
        temp_url = i.split("/")[-1]
        result = re.search(r'([a-zA-Z]+)[.][0-9a-f.]{8}.js', temp_url)
        if result:
            name = result.groups()[0]
            vue_list.append(name)
    # 去重
    vue_list = list(set(vue_list))
    return vue_list

if __name__ == "__main__":
    result = ''
    vue_lists=get_vue_list(result)
    print(vue_lists)

